@if ($user->id !== Auth::user()->id)
    <div id="follow_form">
        <form action="{{ route('users.follow', $user->id) }}" method="post">
            {{ csrf_field() }}
            <button type="submit" class="btn btn-sm">{{ Auth::user()->isFollowing($user->id) ? '取消关注' : '关注' }}</button>
        </form>
    </div>
@endif